<?php

include_once 'common.php';

list ($mixed, $shortcut) = explode(":", $_GET["q"]);

if ($shortcut) {

    $champion = Champion::get_by_name($container, $mixed);

    $ability = Ability::get_by_shortcut($container, $champion, $shortcut);

    
} else {

    $ability = Ability::get_by_name($container, $mixed);

    $champion = Champion::get_by_id ($container, $ability->bloodline_id);


}


echo $ability->name. " (".strtoupper($ability->shortcut).") [".$champion->name."]";

?>
